package com.gupaoedu.pattern.strategy;

/**
 * 2019/9/28
 * created by chenpp
 * 航班取消策略，退还全额
 */
public class FlightCancelStrategy implements Strategy {

    public FlightReturn flightReturn(Double price) {
        String msg = "航班因为天气取消，退还全部金额:RMB "+price+".";
        FlightReturn flightReturn = new FlightReturn(price,msg);
        return flightReturn;
    }
}
